Skip to main content

All Questions

Tagged with
0votes
2answers
40views

find script to sort subtree into most recent modification times?

What is the find script to sort a subtree into files with the most recent modification time? Also preserving their path name? I suspect it has something to do with find, ls, awk and sort. I haven't ...
atod's user avatar
9votes
2answers
912views

How do I make `ls` sort the same way Thunar sorts files?

The title is a summary of what I'm trying to achieve, but I'll give an example to illustrate what my problem is and how I've been trying to solve it. Example folder Let's say I've got a folder on a ...
Apollucas's user avatar
0votes
2answers
91views

Display count of files group by year

I'm not Unix / Linux person so struggling with command / script which could give me count of files in a directory, and within it multiple sub-directories. I want to generate output similar to below ...
Tech Sawy's user avatar
0votes
1answer
72views

Any operations with file system takes forever

I'm using Ubuntu 22.04 LTS. Unexpectedly for me all operations with the file system stopped working. I tried ls /, df and nautilus - all of this command takes forever to execute. What happened to my ...
Minuta18's user avatar
0votes
0answers
30views

du and du -h give different results, and neither match ls -lh [duplicate]

I can paste a screenshot if preferred, but here is what I typed: me@server:~/dutest/test2$ du 12 . me@server:~/dutest/test2$ du -h 12K . me@server:~/dutest/test2$ du -b 4243 . me@server:~/dutest/...
Ben Holness's user avatar
-1votes
1answer
453views

What is the "l" command in Linux?

I just accidentally typed l and hit enter. Then this happened. I'm not talking about ls -l just l. Why did this happen?
lunix's user avatar
1vote
1answer
432views

"ls -l" but with output in more than one column? [duplicate]

Monitors tend to be more wide than tall. When there's hundreds of files in a folder, ls -l and ls -l | more will only show you me maybe 100 files at a time, due to the lack of vertical space on the ...
Nike Dattani's user avatar
0votes
1answer
332views

Why isn't `which ls | file` working?

I would like to use the result of which ls and see the file type using file. However, when I type in which ls | file it doesn't work. When I try to do file < which ls, that doesn't work either. Any ...
Grateful's user avatar
0votes
0answers
34views

How to set file permission to 777 using umask [duplicate]

It is true that i may not have understood how umask calculations work. This query is just for a test case (my learning). My intention is that my process should generate a file pdf file1.pdf with full ...
Ashar's user avatar
0votes
1answer
84views

Weird LS output on WSL2

Using ls or exa I get a weird output on windows subsystem for linux : Can someone point out what's wrong? I have no funny aliases here. Just running ls.
Weezy's user avatar
5votes
2answers
5kviews

meaning of file type c in ls -l command [duplicate]

I am wondering what the type c is in the ls command. I was following the symlinks at /dev/stdin and ended up with /dev/pts/0 $ ls -l /dev/pts/0 crw--w---- 1 blue tty 136, 0 Apr 8 21:50 /dev/pts/0 I ...
The Fool's user avatar
7votes
3answers
6kviews

Get a list of files (in the way similar to `ls`) on website/webpage before choosing which to download

Let's say I'm on a webpage on which there are several hyperlinks to pdf documents. I want to download those pdf. Is there a way to get a list of those documents (in the ls way) which then allows to ...
ecjb's user avatar
  • 465
1vote
1answer
700views

ls -F: where is the official Unix/Linux complete list of the indicator entries types?

About ls -F in the man ls for -F does mention about: -F, --classify append indicator (one of */=>@|) to entries I read the following: What do the symbols displayed by ls -F mean? 14. How to ...
Manuel Jordan's user avatar
0votes
1answer
258views

How to open the n most recently modified files in less/vim?

How can I open all and only the n (e.g. 5) most recently modified files in a directory in less or vim? I know I can use ls -t to sort the output from most recent to oldest. So my intuition would be to ...
Cornelius Roemer's user avatar
0votes
2answers
405views

Bash ls not sorting correctly?

I have a collection of pdfs in a folder. If I do a simple ls it returns this: 'The Amazing Spider Man 2018 - Ch Issue - 10.pdf' 'The Amazing Spider Man 2018 - Ch Issue - 32.pdf' 'The ...
ZackT's user avatar

153050per page
close